$(function(){
	var yuan = document.getElementById('yuan');
	var xin = document.getElementById('new');
	var again = document.getElementById('again');
	$('#new').blur(function(){
		if(xin.value.length < 6) {
			$('#new').css('color','red');	
		}else{
			$('#new').css('color','#888');	
		}
	})
	$('#again').blur(function(){
		if(xin.value.length != again.value.length) {
			alert('两次输入密码不一致!');
		}
	})
})